      <section id="content">
        <div class="content-left">
          <h2>Administrace</h2>
          <ul class="menu">
            <li><a href="<?php echo url::base(); ?>administration" title="">Úvodní stránka</a></li>
            <li><a href="<?php echo url::base(); ?>administration/gallery" title="">Galerie</a></li>
            <li class="active"><a href="<?php echo url::base(); ?>administration/articles" title="">Články</a></li>
            <li><a href="<?php echo url::base(); ?>administration/users" title="">Uživatelé</a></li>
            <li><a href="<?php echo url::base(); ?>administration/blogs" title="">Blogy</a></li>
            <li><a href="<?php echo url::base(); ?>administration/discussions" title="">Diskuze</a></li>
            <li><a href="<?php echo url::base(); ?>administration/stats" title="">Statistiky</a></li>
          </ul>
          <div class="content-left-bottom menu-left-bottom"></div>
        </div>
        <div class="content-right">
          <header>
            <h2>Články</h2>
          </header>
          <section>
          <script>
            $(function() {
              $( "#dialog-confirm" ).hide();
            });
             function articleDelete(id) {
               $( "#dialog-confirm" ).html('<p>Skutečně chcete tento článek odtranit?</p>');
                $( "#dialog-confirm" ).dialog({
                  resizable: false,
                  width: 400,
                  minHeight: 40,
                  modal: true,
                  draggable: false,
                  closeOnEscape: true,
                  open: function(event, ui) { $(".ui-dialog-titlebar-close,.ui-dialog-titlebar").remove(); },
                  buttons: {
                    "Odstranit": function() {
                      window.location.replace("/articles/delete/"+id);
                    },
                    "Zavřít": function() {
                      $( this ).dialog( "close" );
                    }
                  }
                });
              }
              function articlePublish(id) {
                $( "#dialog-confirm" ).html('<p>Skutečně chcete publikovat tento článek?</p>');
                $( "#dialog-confirm" ).dialog({
                  resizable: false,
                  width: 400,
                  minHeight: 40,
                  modal: true,
                  draggable: false,
                  closeOnEscape: true,
                  open: function(event, ui) { $(".ui-dialog-titlebar-close,.ui-dialog-titlebar").remove(); },
                  buttons: {
                    "Publikovat": function() {
                      window.location.replace("/articles/publish/"+id);
                    },
                    "Zavřít": function() {
                      $( this ).dialog( "close" );
                    }
                  }
                });
              }
              function articleUnpublish(id) {
                $( "#dialog-confirm" ).html('<p>Tento článek nadále nepublikovat?</p>');
                $( "#dialog-confirm" ).dialog({
                  resizable: false,
                  width: 400,
                  minHeight: 40,
                  modal: true,
                  draggable: false,
                  closeOnEscape: true,
                  open: function(event, ui) { $(".ui-dialog-titlebar-close,.ui-dialog-titlebar").remove(); },
                  buttons: {
                    "Nepublikovat": function() {
                      window.location.replace("/articles/unpublish/"+id);
                    },
                    "Zavřít": function() {
                      $( this ).dialog( "close" );
                    }
                  }
                });
              }
          </script>
          <div id="dialog-confirm">            
          </div>
          <?php foreach ($articles as $item): ?>
            <div class="content-right-item">
              <p><img class="icon" src="<?php echo url::base() ?>media/img/icons/mini_date.png" alt="" /> <?php echo Helpers_Photovoice::datum($item->date); ?></p>
              <p class="text"><?php echo $item->title; ?><?php if (empty($item->published)) { echo '<span class="text-gray"> (Nepublikovaný)</span>'; } ?></p>
              <span class="content-right-tools">
                <?php if (empty($item->published)): ?>
                <a href="javascript:articlePublish('<?php echo $item->id; ?>');" title="Publikovat článek">Publikovat</a> |
                <?php else: ?>
                <a href="javascript:articleUnpublish('<?php echo $item->id; ?>');" title="Nepublikovat článek">Nepublikovat</a> |
                <?php endif ?>
                <a href="<?php echo url::base(); ?>articles/edit_admin/<?php echo $item->id; ?>" title="Upravit článek">Upravit</a> |
                <a href="javascript:articleDelete('<?php echo $item->id; ?>');" title="Smazat článek">Smazat</a>
              </span>
              <div class="clear-both"></div>
            </div>
          <?php endforeach ?>
          </section>
          <div class="content-right-bottom"></div>
        </div>
      </section>